package com.fansl.allround.study.designpattern.responsibilitychain;

/**
 * @author fansl
 * @Description: TODO
 * @date 2019/10/11 13:40
 */
public class Client {
    public static void main(String[] args) {
         //声明所有的处理节点
        Handler handler = HandlerChainFactory.doLeaveChain();
        LeaveNoteRequest request = new LeaveNoteRequest("张三","车祸",10);
        Response response = handler.handleMessage(request);
    }
}
